home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
MPW_TOOL
/
TOOLS
/
TOOLS_WI
/
BYACC__
/
DEP.H
< prev
next >
Wrap
Text File
|
1989-11-19
|
1KB
|
39 lines
/************************************************************************
* *
* Dep.h contains some machine-dependent definitions. *
* *
************************************************************************/
#ifndef DEP
#define DEP
#ifdef AZTECC
#define MAXDIGITS 12
#define MININT -32768
#define MINSTR "-32768"
#define MAXCHAR 255
#define MAXSHORT 32767
#define MINSHORT -32768
#define MAX_TOKEN_NUMBER MAXSHORT
#define BITS_PER_WORD 16
#define WORDSIZE(n) (((n)+(BITS_PER_WORD-1))/BITS_PER_WORD)
#define ROWSIZE(n) (sizeof(unsigned)*WORDSIZE(n))
#define BIT(r, n) ((((r)[(n) >> 4]) >> ((n) & 15)) & 1)
#define SETBIT(r, n) ((r)[(n) >> 4] |= (1 << ((n) & 15)))
#else
#define MAXDIGITS 12
#define MININT -2147483648
#define MINSTR "-2147483648"
#define MAXCHAR 255
#define MAXSHORT 32767
#define MINSHORT -32768
#define MAX_TOKEN_NUMBER MAXSHORT
#define BITS_PER_WORD 32
#define WORDSIZE(n) (((n)+(BITS_PER_WORD-1))/BITS_PER_WORD)
#define ROWSIZE(n) (sizeof(unsigned)*WORDSIZE(n))
#define BIT(r, n) ((((r)[(n) >> 5]) >> ((n) & 31)) & 1)
#define SETBIT(r, n) ((r)[(n) >> 5] |= (1 << ((n) & 31)))
#endif
#endif